<?php

namespace App\Repositories;

use App\Models\StaffCard;
use InfyOm\Generator\Common\BaseRepository;

/**
 * Class StaffCardRepository
 * @package App\Repositories
 * @version December 8, 2018, 7:58 pm CST
 *
 * @method StaffCard findWithoutFail($id, $columns = ['*'])
 * @method StaffCard find($id, $columns = ['*'])
 * @method StaffCard first($columns = ['*'])
*/
class StaffCardRepository extends BaseRepository
{
    /**
     * @var array
     */
    protected $fieldSearchable = [
        'name',
        'sell_time_start',
        'sell_time_end',
        'valid_time_start',
        'valid_time_end'
    ];

    /**
     * Configure the Model
     **/
    public function model()
    {
        return StaffCard::class;
    }
}
